<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>默认参数</title>
</head>
<body>
    <script>
        const search = (arr, low=0,high=arr.length-1) => {
            return high;
        }
        const r=search([1,2,3,4,5]);
        console.log('%c r  :r ','color: MidnightBlue; background: Aquamarine; font-size: 20px;', r);

    </script>
</body>
</html>